package demoMod.moduploader.utils;

import com.codedisaster.steamworks.SteamAPI;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class SteamTicker implements Runnable {
    private static final Logger log = LogManager.getLogger(SteamTicker.class);


    @Override
    public void run() {
        while (SteamAPI.isSteamRunning()) {
            try {
                Thread.sleep(66L);
            } catch (InterruptedException e) {
                log.error("SteamAPI stopped running.", e);
            }

            SteamAPI.runCallbacks();
        }
        log.error("SteamAPI stopped running.");
    }
}
